package com.company.cloud.club.modules.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.cloud.club.modules.db.domain.RecommendTemp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RecommendTempMapper extends BaseMapper<RecommendTemp> {

    @Select("SELECT * FROM club_recommend_temp WHERE user_id = #{userId, jdbcType=INTEGER} ORDER BY time_created DESC")
    List<RecommendTemp> selectByUserId(@Param("userId") Integer userId);

}